package me.aip.mov.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import me.aip.mov.entity.ChatMsg;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author aip9105
 * @since 2022-02-12
 */
public interface IChatMsgService extends IService<ChatMsg> {

    Page<ChatMsg> findChatMsgRecord(Page page, ChatMsg msg);

    Page<ChatMsg> findChatUserMagList(Page page, String userId);

    void updateUnread(String userId, String toUserId);

    Integer getUnReadCount(String userId);
}
